package com.hzbank.aaronkotlin

import android.content.Context
import android.util.AttributeSet
import android.view.MotionEvent
import androidx.recyclerview.widget.RecyclerView

class BoardRecyclerView: RecyclerView {

    constructor(context: Context): super(context)
    constructor(context: Context, attrs: AttributeSet): super(context, attrs)

    constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int):
            super(context, attrs, defStyleAttr)

    private var isHandler: Boolean = true

    fun isHandler(isHandler: Boolean){

        this.isHandler = isHandler
    }

    override fun onInterceptTouchEvent(e: MotionEvent?): Boolean {
        return isHandler
    }
}